package com.lkc.mapper;

import com.lkc.bean.Users;
import com.lkc.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UsersDao {

    int add(@Param("param") Users  users);

    int del(@Param("id") Integer userId);
    int edit(@Param("param") Users  users);
    Users one(@Param("id") Integer userId);
    List< Users> all(@Param("param") Users  users);

    int pageCount(@Param("param") Users  users);
    List< Users> page(@Param("page") Page page, @Param("param")Users users);
    Users getByusername(@Param("username") String username);
}
